<%@ page contentType="text/html;charset=GBK" %>

<%@ page import="java.util.*" %>
<%@ page import="com.ionglobal.db.*" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>

<%@ include file="../init_include.jsp" %>
<%@ include file="./checkPrivileges.jsp" %>
<%
	String table="",condition="",rsturl="";
	if(request.getParameter("table")!=null)
		table=request.getParameter("table");
	if(request.getParameter("condition")!=null)
		condition=request.getParameter("condition");		
	if(request.getParameter("rsturl")!=null)
		rsturl=request.getParameter("rsturl");
	if(table!=null && table.length()>0) {
		if(condition!=null && condition.length()>0) {
			String sql="delete from "+table+" where "+condition;
			dbi.execute(sql);
		}
	}
	response.sendRedirect(rsturl);
%>
<%@ include file="../init_free.jsp" %>